<?php
namespace cubox\provider\exception;

class DataException extends \Exception
{
    protected $data;
    public function __construct($message = "",$data = [], $code = 0, \Throwable $previous = null)
    {
        $this->data = $data;
        parent::__construct($message, $code, $previous);
    }

    public function getData()
    {
        return $this->data;
    }
    
}